<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<title>#ml_ts_prios</title>
<hta:application applicationname="#ml_dlg_cnf_header" singleinstance="yes" caption="yes" navigable="yes" innerborder="no" icon="images\speed_hta.ico" />
<link rel="stylesheet" type="text/css" href="dialog.css" />
<script type="text/javascript"><!--
   var ml_object = { yes: "#ml_yes", no: "#ml_no", ole_error: "#ml_ole_error", overwrite: "#ml_prog_overwrite",
      games: "#ml_games", p2p: "#ml_file_sharing", special: "#ml_special", clients: "#ml_client_protocols", servers: "#ml_server_protocols",
      voip: "#ml_voip", multimedia: "#ml_media_streaming", remote_control: "#ml_remote_control",
      misc_high: "#ml_misc_high_short", other: "#ml_other", browser_warning: "#ml_browser_warning",
      settings: "#ml_settings", "_delete": "#ml_delete", entries: "#ml_entries",
      prio_lowest: "#ml_lower", prio_low: "#ml_low", prio_normal: "#ml_normal", prio_high: "#ml_high", prio_higher: "#ml_higher"
   };
   var is_programs = window.location.search.indexOf("protocols") == -1;
-->
</script>
<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="dlg_common.js"></script>
<script type="text/javascript" src="prioutil.js"></script>
</head>
<body onload="dialog()">
  <div id="menu">
    <img src="images/logo.png" width="220" height="100" alt="" onFocus="this.blur()"  ONDRAGSTART="window.event.returnValue=false"/>
    <ul class="menu">
      <li><a href="cfospreferences.cfhta">#ml_preferences</a></li>
      <li id="li_prot"><a href="priority.cfhta?protocols" id="l7_tab">#ml_protocols</a></li>
      <li id="li_prog"><a href="priority.cfhta">#ml_programs</a></li>
      <li><a href="adapterinfo.cfhta">#ml_adapter_info</a></li>
      <li><a href="spdbudget.cfhta">#ml_budgets</a></li>
      <li><a href="slot.cfhta">#ml_traffic_analysis</a></li>
    </ul>
    <div class="help_box" id="help_prio">
      <p><b>#ml_higher: </b>#ml_higher_prog_help</p>
      <p><b>#ml_high: </b>#ml_high_prog_help</p>
      <p><b>#ml_low: </b>#ml_low_prog_help</p>
      <p><b>#ml_lower: </b>#ml_lower_prog_help</p>
      <p><b>#ml_delete: </b>#ml_delete_help</p>
      <p><b>#ml_note: </b>#ml_prog_help</p>
    </div>
  </div>
  <div id="dlg">
     <h1>#ml_prio_programs</h1>
     <div id="top" class="setting">
       <p class="help">
         <b>#ml_hint </b>: #ml_prog_hint_text<br/>
         <a class="hand" onclick="open_url('#ml_prio_doc_link_url')">#ml_prio_doc_link</a>
       </p>
     </div>
     <hr />
     <div id="tablebox">
     </div>
     <hr />
     <div class="buttons">
      <span id="add_new_program" style="display:none">
         <button onclick="show_new_program_box()">#ml_new_program</button>
      </span>
      <button id="undo" disabled="disabled" onclick="undo()">#ml_undo</button>
      <button id="restore" disabled="disabled" onclick="restore_defaults(is_programs);">#ml_restore_defaults</button>
     </div>
  </div>
  <div class="settings_frame" id="new_program_box" data-prio="3">
    <div class="settings_box shadow">
      <h1>#ml_new_program</h1>
      <div class="setting">
          #ml_filename<br/>
          <div class="text_input">
            <input class="text" id="exefile" type="text" size="26" />
          </div>
            <button class="norm_button" id="search" onclick="browse_for_file()">#ml_search</button>
      </div>
      <div class="setting">
          #ml_description
      <div class="text_input"><input class="text" id="desc" type="text" size="40" /></div>
      </div>
      <div class="setting">
          <img id="suggest_prog" class="checkbox" src="images/checkbox_on.png" style="float: left; margin-right: 5px" />
          #ml_suggest_program
      </div>
      <div class="setting">
        <img class="set_prio" style="float: left; margin-left: 4px" id="np_prio" src="images/prio_3.png" alt="#ml_normal"/>
        <span class="smalltext" style="float: left; padding-left:3ex">#ml_normal</span><br style="clear: left"/>
      </div>
      <div class="buttons">
        <button class="norm_button" onclick="add_new_program()">#ml_add</button>
        <button class="norm_button" onclick="hide_new_program_box()">#ml_console_cancel</button>
      </div>
    </div>
  </div>
  <div class="settings_frame" id="settings_box">
    <div class="settings_box shadow">
       <h1>#ml_settings</h1>
       <p><strong>#ml_tx_limit: </strong>#ml_tx_limit_help</p>
       <div class="setting">
         #ml_tx_limit
         <div class="text_input">
           <input class="text right" id="tx_limit" style="width: 50px;" value="-" />
           <img src="images/reset.png" onmouseover='this.src="images/reset_a.png";' onmouseout='this.src="images/reset.png";' alt="#ml_reset" onclick="$('#tx_limit')[0].value = '-'"/>
         </div>
       </div>
       <div class="buttons">
         <button class="norm_button" onclick="change_settings()">#ml_ok</button>
         <button class="norm_button" onclick="$('#settings_box').hide()">#ml_console_cancel</button>
       </div>
    </div>
  </div>

</body>
</html>
